<?php
class Ugly{
	function GetUglyNumber_Solution($index){
		$num = $index;
		while ($num % 2 == 0) {
			$num /= 2;
		}
		while ($num % 3 == 0) {
			$num /= 3;
		}
		while ($num % 5 == 0) {
			$num /= 5;
		}
		if($num==1){
			return $index."是丑数";
		}else{
			return $index."不是丑数";
		}
	}
}
$data= new Ugly;
print_r($data->GetUglyNumber_Solution(26));
?>